package com.boang.ks;

/*
  @author: 13813
  @date: 2024/11/29 9:39
*/
public class Test {
    public static void main(String[] args) {
        Student s1 = new Student("张三", 90);
        Student s2 = new Student("张三", 90);
        System.out.println(s2 == s1);//false

        System.out.println(s1.equals(s2)); //true


        System.out.println(s1);
    }
}
